package com.house.twohouse.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.house.common.utils.PageUtils;
import com.house.common.utils.Query;

import com.house.twohouse.dao.OfficeBuildingDao;
import com.house.twohouse.entity.OfficeBuildingEntity;
import com.house.twohouse.service.OfficeBuildingService;


@Service("officeBuildingService")
public class OfficeBuildingServiceImpl extends ServiceImpl<OfficeBuildingDao, OfficeBuildingEntity> implements OfficeBuildingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OfficeBuildingEntity> page = this.page(
                new Query<OfficeBuildingEntity>().getPage(params),
                new QueryWrapper<OfficeBuildingEntity>()
        );

        return new PageUtils(page);
    }

}